package com.yjf.ljr.dataclass;

import java.io.Serializable;
import java.util.List;

import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
import com.yjf.ljr.parser.DataClass;

public class HelpItemDataClass extends DataClass {


	@Expose	// 是否需要更新
	@SerializedName("result")
	public String isNeedUpdate;
	
	@Expose	// 时间
	@SerializedName("updateTime")
	public String time;
	
	@Expose	// 帮助文档列表
	@SerializedName("helList")
	public List<HelpItemInfo> helpList;
	
	@Override
	public boolean copy(DataClass valueClass) {
		if (valueClass == null || !(valueClass instanceof HelpItemDataClass)) {
			return false;
		}
		this.code = ((HelpItemDataClass) valueClass).code;
		this.msg = ((HelpItemDataClass) valueClass).msg;
		this.time = ((HelpItemDataClass) valueClass).time;
		this.isNeedUpdate = ((HelpItemDataClass) valueClass).isNeedUpdate;
		this.helpList = ((HelpItemDataClass) valueClass).helpList;
		return true;
	}

	public static class HelpItemInfo implements Serializable {
		private static final long serialVersionUID = 1L;
		
		@Expose	// 标题
		@SerializedName("title")
		public String helpTitle;
		
		@Expose	// 内容
		@SerializedName("content")
		public String helpDetail;
	}
}